package com.nightpiter.view.graphics;

import com.nightpiter.view.graphics.abstaractions.AbstractRectF;
import com.nightpiter.view.graphics.abstaractions.Delegator;
import com.nightpiter.view.graphics.factories.RectFFactory;

public class RectF extends Delegator<AbstractRectF> implements AbstractRectF {

	public RectF() {
		setDelegate(RectFFactory.getFactory().create());
	}

	public RectF(float left, float top, float right, float bottom) {
		setDelegate(RectFFactory.getFactory().create(left, top, right, bottom));
	}

	public RectF(Rect rect) {
		setDelegate(RectFFactory.getFactory().create(rect));
	}

	public RectF(RectF rectF) {
		setDelegate(RectFFactory.getFactory().create(rectF));
	}

	public float getBottom() {
		return getDelegate().getBottom();
	}

	public float getLeft() {
		return getDelegate().getLeft();
	}

	public float getRight() {
		return getDelegate().getRight();
	}

	public float getTop() {
		return getDelegate().getTop();
	}

	public float height() {
		return getDelegate().height();
	}

	public float width() {
		return getDelegate().width();
	}

	public void set(float left, float top, float right, float bottom) {
		getDelegate().set(left, top, right, bottom);
	}

}
